import request from '@/utils/request'

export function gethousetypelist(params) {
    return request({
        url: '/api/app/smart-hotel-app-house/user-house',
        method: 'get',
        params
    })
}
export function getByidhousetypelist(id) {
    return request({
        url: '/api/app/smart-hotel-app-house/' + id + '/house-find-id',
        method: 'get',
    })
}
export function Addhouse(data) {
    return request({
        url: '/api/app/smart-hotel-app-house/house',
        method: 'post',
        data
    })
}
export function Updhouse(data) {
    return request({
        url: '/api/app/smart-hotel-app-house/house',
        method: 'put',
        data
    })
}
export function Updrankhouse(id, houserank) {
    return request({
        url: '/api/app/smart-hotel-app-house/' + id + '/housenum?houserank=' + houserank,
        method: 'put',

    })
}
export function Updzidingyiprice(id, CustomPrice) {
    return request({
        url: '/api/app/smart-hotel-app-house/' + id + '/a-vHouse?CustomPrice=' + CustomPrice,
        method: 'put',

    })
}
export function Deletehouse(id) {
    return request({
        url: '/api/app/smart-hotel-app-house/' + id + '/house',
        method: 'delete',
    })
}
export function BatchDeletehouse(data) {
    return request({
        url: '/api/app/smart-hotel-app-house/delete-batch-house',
        method: 'post',
        data: data
    })
}

export function gethouse() {
    return request({
        url: '/api/app/smart-hotel-app-check-in/huose-room',
        method: 'get',
    })
}